﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media.Imaging;
using System.Windows.Controls;

namespace Hugo
{
    class ScreenSaverUIPage : UIPage
    {

        public ScreenSaverUIPage()
            : base("KEITH", null)
        {
            Label nameLabel = new Label();
            nameLabel.Content = "KEITH";
            nameLabel.HorizontalAlignment = System.Windows.HorizontalAlignment.Center;
            nameLabel.Foreground = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Colors.White);
            nameLabel.FontSize = 330;
            PageCanvas.Children.Add(nameLabel);

            Label summaryLabel = new Label();
            summaryLabel.Content = "KINECTING ELDERS IN THE HOSPITAL";
            summaryLabel.HorizontalAlignment = System.Windows.HorizontalAlignment.Center;
            summaryLabel.Foreground = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Colors.White);
            summaryLabel.FontSize = 50;
            PageCanvas.Children.Add(summaryLabel);

            Label instructionsLabel = new Label();
            instructionsLabel.Content = "wave or say \"KEITH\" to begin";
            instructionsLabel.HorizontalAlignment = System.Windows.HorizontalAlignment.Center;
            instructionsLabel.Foreground = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Colors.White);
            instructionsLabel.FontSize = 40;
            PageCanvas.Children.Add(instructionsLabel);

            Canvas.SetTop(nameLabel, 80);
            Canvas.SetTop(summaryLabel, 460);
            Canvas.SetTop(instructionsLabel, 530);

            double middleX = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width/2;

            Canvas.SetTop(nameLabel, 150);
            Canvas.SetTop(summaryLabel, 510);
            Canvas.SetTop(instructionsLabel, 650);

            Canvas.SetLeft(nameLabel, middleX-820/2);
            Canvas.SetLeft(summaryLabel, middleX-800/2);
            Canvas.SetLeft(instructionsLabel, middleX-500/2);
        }

        public override void respondToKey(System.Windows.Input.KeyEventArgs e)
        {
        }

        public override void setCursorPosition(System.Windows.Point p)
        {
        }
    }
}
